import request from '@/plugin/axios'

export function createOrEdit(data) {
  return request({
    url: '/house/createOrEdit',
    method: 'post',
    data: data 
  })
}

export function queryById(id) {
  return request({
    url: '/house/getById',
    method: 'get',
    params: {
      id: id
    }
  })
}

export function fetchList (data) {
  return request({
    url: '/shop/list',
    method: 'get',
    params: data
  })
}
